﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PVP
{
    public struct Point3D
    {
        public double X, Y, H;
        public Point3D(double x, double y, double z)
        {
            this.X = x;
            this.Y = y;
            this.H = z;
        }
        public static Point3D operator +(Point3D p1, Point3D p2)
        {
            return new Point3D(p1.X + p2.X, p1.Y + p2.Y, p1.H + p2.H);
        }
        public static Point3D operator /(Point3D p1, int n)
        {
            return new Point3D(p1.X / n, p1.Y / n, p1.H / n);
        }
    }

    public struct Point2D
    {
        public double X, Y;
        public Point2D(double x, double y)
        {
            this.X = x;
            this.Y = y;
        }
        public static Point2D operator +(Point2D p1, Point2D p2)
        {
            return new Point2D(p1.X + p2.X, p1.Y + p2.Y);
        }
        public static Point2D operator -(Point2D p1, Point2D p2)
        {
            return new Point2D(p1.X - p2.X, p1.Y - p2.Y);
        }
        public static Point2D operator /(Point2D p1, int n)
        {
            return new Point2D(p1.X / n, p1.Y / n);
        }
    }

    class PVP
    {
        public static string appPath = Program.appPath;
        public static string dataPath = appPath + "\\data";
        public static string LeftGrpPath = dataPath + "\\LeftGrp";
        public static string RightGrpPath = dataPath + "\\RigthGrp";
        public static string LeftToleranceGrpPath = dataPath + "\\LeftToleranceGrp";
        public static string RightToleranceGrpPath = dataPath + "\\RightToleranceGrp";
        public static string LeftConvertedGrpPath = dataPath + "\\LeftConvertedGrp";
        public static string RightConvertedGrpPath = dataPath + "\\RightConvertedGrp";
    }
}
